using System.Web.Mvc;
using AgileBoard.Web.Controllers.ViewModel;
using Microsoft.Practices.ServiceLocation;

namespace AgileBoard.Web.Presentation
{
    public static class PageContextExtensions
    {
        public static MvcHtmlString ProjectTitle(this HtmlHelper helper)
        {
            var profile = ServiceLocator.Current.GetInstance<UserProfile>();
            return MvcHtmlString.Create(profile == null ? string.Empty : profile.ProjectName);
        }
    }
}